package run.theo.mallorder.service.impl;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * project name: IntelliJ IDEA
 * Date: 2022/10/18 8:54
 *
 * @PackageName: run.theo.mallorder.service.impl
 * @ClassName: MallOrderServiceImplBlockHandlerClass
 * @Author: Theo
 * @Version:
 * @Description:
 */
@Slf4j
public class MallOrderServiceImplBlockHandlerClass {
    //注意这里必须使用static修饰方法
    public static String blockHandler(BlockException ex) {
        log.error("{}", ex);
        return "接口被限流或者降级了...";
    }
}
